package com.gaoyi.websocket.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author liaojunhui
 * @since 2021-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TblNews implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 文章Id
     */
    @TableId(value="title_id",type = IdType.AUTO )//IdType.AUTO 数据库自增；数据库上也要勾上自增
    private Integer titleId;

    /**
     * 所属栏目Id
     */
    private Integer sortId;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 缩略图地址
     */
    private String imageAddress;

    /**
     * 简介
     */
    private String synopsis;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 内容
     */
    private String content;


}
